package com.dodalizer.parser.method;

import com.dodalizer.parser.modifierset.ModifierSet;

public class JavaMethod extends Method {

    private ModifierSet modifierSet;

    public JavaMethod(String name) {
        super();
        setName(name);
        this.modifierSet = new ModifierSet();
    }

    public void setModifierSet(ModifierSet modifierSet) {
        this.modifierSet = modifierSet;
    }

    public ModifierSet getModifierSet() {
        return this.modifierSet;
    }

    public void addModifier(int modifier) {
        this.modifierSet.addModifier(modifier);
    }
}
